package cn.yudao.ymcc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication(scanBasePackages = "cn.yudao",exclude = { DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@MapperScan("cn.yudao.ymcc.mapper")
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled= true)// 开启@PreAuthorize授权支持
public class ServiceUaaStarter {

    public static void main(String[] args) {
        SpringApplication.run(ServiceUaaStarter.class,args);
    }

}
